package com.chat.controller;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tk.mybatis.spring.annotation.MapperScan;

@RestController
@MapperScan("com.chat.mapper")
@ComponentScan(basePackages = {"com.chat"})
public class HelloController {

    @RequestMapping("/hello")
    public String helli(){
        return "hello NiChat";
    }
}
